import request from '@/utils/request'

// 获取员工列表
export function getEmployeeListAPI(params) {
  return request({
    url: '/park/sys/user',
    params
  })
}
// 添加员工
export function createEmployeeAPI(data) {
  return request({
    url: `/park/sys/user`,
    method: 'POST',
    data
  })
}
// 删除员工
export function delEmployeeAPI(id) {
  return request({
    url: `/park/sys/user/${id}`,
    method: 'DELETE'
  })
}

export function huiEmployeeAPI(id) {
  return request({
    url: `/park/sys/user/${id}`
  })
}
// 编辑员工
export function editEmployeeAPI(data) {
  return request({
    url: `/park/sys/user`,
    method: 'put',
    data
  })
}
